<?php
include '../common.php';
include '../common/header.php';
$id = (int)$_GET['power'];
$sql  = "SELECT * FROM user WHERE id = '{$id}'";
$row = select($sql,$DB);
?>
<link href="<?=$website['public'];?>/admin/user.css" rel="stylesheet" type="text/css" />
<body>
<div class="top">系统功能 > 修改权限</a></div>
    <div class="m5">
	    <div class="tabs">
	     	<ul class="tab_menu">
		     	<li class="current">修改权限</li>
	     	</ul>
	     	<div class="tab_box">
		     	<form action="../judge/power_if.php" method="post">
					<select name="user" class="select">
					<?php
					if ($row[0]['user'] === '2') {
					?>
						<option value="3">普通管理员</option>
					<?php
					}elseif ($row[0]['user'] == '3') {
					?>
						<option value="2">系统管理员</option>
					<?php
					}
					?>
					</select>
					<input type="hidden" name="id" value="<?php echo $id; ?>">
					<button  class="button button-green" type = "submit">提交</button>
					<a href="user.php" class="button return">返回</a>
				</form>
	     	</div>
	    </div>
	</div>
</body>
</html>